package com.easylinkin.linkappapi.childhospital.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.childhospital.entity.DormitoryDetail;
import com.easylinkin.linkappapi.childhospital.entity.DormitoryManageBuilding;
import com.easylinkin.linkappapi.childhospital.entity.DormitoryManageUser;
import com.easylinkin.linkappapi.childhospital.vo.DormitoryManageSelectVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DormitoryManageBuildingMapper extends BaseMapper<DormitoryManageBuilding> {

    List<DormitoryDetail> getDormitoryDetail(@Param("entity") DormitoryManageSelectVo entity,@Param("tenantId") String tenantId);

    List<DormitoryManageUser> getDormitoryUser(List<String> list);

    List<DormitoryManageUser> getCheckHistoryUser(@Param("roomId")String roomId, @Param("keywords") String keywords, Page page);

    int getCountHistory(String roomId);

    List<DormitoryManageUser> getCurrentUser(String roomId);
}
